package com.xiangge.zuoye.Demo4;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/18 15:53
 * @description
 */
public class Student {
    private String name;
    private String age;
    private String content;

    public Student(String name, String age, String content) {
        this.name = name;
        this.age = age;
        this.content = content;
    }

    public Student() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void eat(){
        System.out.println("年龄为"+age+"的"+name+"同学正在吃饭....");
    }
    public void study(){
        System.out.println("年龄为"+age+"的"+name+"同学正在专心致志的听着"+content+"的知识........");
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
